package com.westos.echufang.dao;

import com.westos.echufang.pojo.entity.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface EmployeeDao {

    Employee getEmpByPh(@Param("phone") String phone);

    //找回密码页面中通过手机修改密码
    int alterPwd(Employee employee);

    Employee getEmpById(@Param("id") int id);

    Integer updatePwdById( @Param("password") String password,@Param("id") int id);

    int update(Employee employee);

    List<Employee> EmpsByLimit(int pageSize, int pageIndex);

    int delEmps(int id);

    List<Employee> Emps();

    int addEmployee(Employee employee);
}
